package com.example.demo.dao.pojo;

import lombok.Data;
import org.springframework.stereotype.Component;

@Component
@Data
public class BlogInfo {

    public static final int Article_TOP = 1;

    public static final int Article_Common = 0;

    // 文章id
    private int id;

    // 文章标题
    private String title;

    // 文章内容
    private String content;

    // 评论次数
    private int commentCount;

    // 访问次数
    private int visitCount;

    // 作者id
    private int authorId;

    // 内容id
    private int bodyId;

    // 类别id
    private int categoryId;

    // 置顶
    private int weight = Article_Common;

    // 创建时间
    private int createDate;
}
